package com.feign.api.controller;

import com.feign.api.feign.MemberApiFeign;
import com.netflix.discovery.converters.Auto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderApiController {

    @Autowired
    private MemberApiFeign memberApiFeign;

    @RequestMapping("/getOrder")
    public String getOrder(){
        String result = memberApiFeign.getMember();
        return result;
    }
}
